import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    routes: [{
        path: '/', name: 'home', component: require('@/components/Home').default
    }, {
        path: '*', redirect: '/'
    }, {
        path: '/subject', name: 'subject', component: () => import("@/components/Subject.vue")
    }, {
        path: '/card', name: 'card', component: () => import("@/components/CardReward.vue")
    }, {
        path: '/role', name: 'role', component: () => import("@/components/role/index.vue")
    }, {
        path: '/roleConfig', name: 'roleConfig', component: () => import("@/components/role/manageTwo.vue")
    }, {
        path: '/addTime', name: 'addTime', component: () => import("@/components/addTime/index.vue")
    }]
})
